function checkMOTValid() {
var valid;
try {
var resp = connectors.verjio.dvla.getVehicleInfo('HA58 TAG');
valid = resp.motStatus;
} catch (e) {
if (e instanceof HttpNotFoundError) {
// Registration number was not found
valid = null;
}
}
return valid;
}
connectors.verjio.
The namespace location to store Data Connectors that have been downloaded from the Verj.io Materials and downloaded from the Resource Hub
Further documentation.
Using the Data Connector example:
On Click Event: